package com.hutao.manage.test;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.hutao.manage.util.JaxbUtil;

@XmlRootElement(name = "Response")
@XmlAccessorType(XmlAccessType.FIELD)
public class ResultData {

	@XmlElement(name="ResultCode")
	private Integer resultCode;

	 @XmlElement(name="ResultContent")
	private String resultContent;

	

	

    public Integer getResultCode() {
		return resultCode;
	}

	public void setResultCode(Integer resultCode) {
		this.resultCode = resultCode;
	}

	public String getResultContent() {
		return resultContent;
	}

	public void setResultContent(String resultContent) {
		this.resultContent = resultContent;
	}

	

	@Override
	public String toString() {
		return "ResultData [resultCode=" + resultCode + ", resultContent=" + resultContent + "]";
	}

	public static void main(String[] args) throws Exception {
        String xml = "<Response><ResultCode>0</ResultCode><ResultContent>成功</ResultContent></Response>";
        
        System.out.println(JaxbUtil.converyToJavaBean(xml,ResultData.class));
    }

}
